<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
<div class="timo-detail-page">
    <div class="timo-detail-title">基本信息</div>
    <table class="layui-table timo-detail-table">
        <colgroup>
            <col width="100px">
            <col>
            <col width="100px">
            <col>
        </colgroup>
        <tbody>
        <tr>
            <th>产品名称</th>
            <td th:text="${product.name}"></td>
            <th>产品代码</th>
            <td th:text="${product.clz}"></td>
        </tr>
        <tr>
            <th>套餐信息</th>
            <td colspan="3">
                <dd th:each="item:${productPackages} ">
                    <span th:text="${item.cpackage?.name}">    </span>
                </dd>
            </td>
        </tr>
        <tr>
            <th>创建者</th>
            <td th:text="${product.createBy?.nickname}"></td>
            <th>更新者</th>
            <td th:text="${product.updateBy?.nickname}"></td>
        </tr>
        <tr>
            <th>创建时间</th>
            <td th:text="${#dates.format(product.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
            <th>更新时间</th>
            <td th:text="${#dates.format(product.updateDate, 'yyyy-MM-dd HH:mm:ss')}"></td>
        </tr>
        <tr>
            <th>备注</th>
            <td th:text="${product.remark}" colspan="3"></td>

        </tr>
        </tbody>
    </table>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>